﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Web;

namespace Crucible.Migrations
{
    public class MigrationHelper
    {
        public static string getScript(string filename)
        {

            filename = "Crucible.Migrations.Scripts." + filename;

            Assembly asm = Assembly.GetExecutingAssembly();
            StreamReader reader = new StreamReader(asm.GetManifestResourceStream(filename));
            return reader.ReadToEnd();
        }
    }
}